const { java } = require('dubbo2.js');

const dubboProvider = dubbo =>
    dubbo.proxyService({
        dubboInterface: "com.dang.dubbo.service.DubboProvider",
        version: '1.0.0',
        methods: {
            sayHello: function (name) {
                return [java.String(name)]
            },
            getPhoneInfo: function (phone) {
                return [java.array(phone)]
            }
        }
    })


module.exports = {
    dubboProvider
}

